//
//  Common.swift
//  XLVeibo
//
//  Created by macbook on 16/6/25.
//  Copyright © 2016年 buWangChuXing. All rights reserved.
//

import UIKit



// 表情键盘删除按钮通知
let EmoticonDeleteNoti = "EmoticonDeleteNoti"
// 表情键盘表情按钮通知
let EmoticonButtonNoti = "EmoticonButtonNoti"


//欢迎界面更换控制器
let SwiftRootViewController = "SwiftRootViewController"


//微博相关信息参数
let APPKEY = "3634844374"
let APPSECRET = "19a2416ff0ed76fee81c4a482593c260"
let REDIRECT_URI = "http://www.baidu.com"




/// 屏幕的宽高
let KScreenW = UIScreen.mainScreen().bounds.width
let KScreenH = UIScreen.mainScreen().bounds.height

/// 主题颜色
let ThemeColor = UIColor.orangeColor()

/// RGB
func RBG(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}

/// 随机颜色
func RandomColor() -> UIColor{
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    return RBG(r, green: g, blue: b)
}

 /// 首尔显示间距
let OriginalMargin: CGFloat = 10





